import {wx} from '../../../../weixin2alipay/index.js';
import {Page,Component} from '../../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'camera',
        "path":'page/component/pages/camera-scan-code/camera-scan-code'
};
    },
    "data":{
        "result":{}
},
    "onReady"(){
      wx.showModal({
        "title":'提示',
        "content":'将摄像头对准一维码即可扫描',
        "showCancel":false
});
    },
    "scanCode"(e){
      console.log('scanCode:',e);
      this.setData({
        "result":e.detail
});
    },
    "navigateBack"(){
      wx.navigateBack();
    },
    "error"(e){
      console.log(e.detail);
    }
});

